package com.example.book.mapper;

import com.example.book.entity.Type;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 凡哥哥
 * @since 2023-10-16
 */
@Mapper
public interface TypeMapper extends BaseMapper<Type> {
    @Select("select id,type from type where is_delete = 1 and status = 1")
    List<Type> typeAll();

}
